class MyScroll{
    constructor (selector,options={}){
        //处理默认参数
        options.bounce=options.bounce||true;
        options.bounceTime=options.bounceTime||600;
        options.scrollX=options.scrollX||false;
        options.scrollY=options.scrollY||true;
        options.freeScroll=options.freeScroll||false;
        options.startX=options.startX||0;
        options.startY=options.startY||0;

        //选出父级
        let aParent=Array.from(document.querySelectorAll(selector));
        aParent.forEach(parent=>{
            //添加事件
            let child=parent.children[0];
            if(!child) return;
            child.addEventLister('touchstart',start,false);
            child.addEventLister('touchmove',move,false);
            child.addEventLister('touchend',end,false);
            let startX=0,startY=0;
            let disX=0,disY=0;
            let translateX=options.startX,translateY=options.startY;
            function start(ev){}
            function move(ev){}
            function end(ev){}
        })
    }
}